package com.matt.service.Photo;

import com.matt.commons.page.PagerQuery;
import com.matt.domain.photoalbum.Photo;
import org.springframework.data.domain.Page;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface PhotoService {

    Page<Photo> list(String areaId, String albumId, PagerQuery pagerQuery);

    Photo add(String areaId, String albumId, String staffId, String title, String description, MultipartFile file);
    List<Photo> addMultiple(String areaId, String albumId, String staffId, String title, String description, MultipartFile[] file);

    void delete(String areaId, String albumId, String staffId, String photoId);
    void deleteAll(String areaId, String albumId, String staffId, String[] photoId);

    Photo move(String areaId, String photoId, String albumId);

    Photo update(String areaId, String photoId, String title, String description);

    List<Photo> listByAlbumId(String albumId);

}
